package com.example.springbootemployees.Dao;

import com.example.springbootemployees.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmployeeMapper {
    List<Employee> getAllEmployees();
    Employee getEmployeeById(int id);
    int addEmployee(Employee employee);
    int delEmployee(int id);
    int updEmployee(Employee employee);
}
